package cloud.shyidong.commerce.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import cloud.shyidong.core.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 电商订单实体
 * </p>
 * @author syd
 * @since 2023-09-18 15:34:23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("commerce_order")
public class CommerceOrderEntity implements BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    private Long tenantId;

    /**
     * 会员ID
     */
    private Long memberId;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 订单金额(单位：分)
     */
    private BigDecimal money;

    /**
     * 实付金额(分)
     */
    private BigDecimal payMoney;

    /**
     * 支付时间
     */
    private Date payTime;

    /**
     * 
     */
    private Integer status;

    /**
     * 
     */
    private Integer sortIndex;

    /**
     * 
     */
    private Long createUser;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private Long updateUser;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    @TableLogic
    private Integer deleted;

    /**
     * 
     */
    private String remark;


}
